1 For an updated version check: http://www.castleproject.org/index.php/How+To+Build
\r
3 Everything should compile fine using NAnt 0.85 RC3. Anyway, the following are some useful tips if things go wrong for some reason.
\r
6 Where to start the build?
\r
7 =========================
\r
9 Use the default.build in the root directory. It compiles everything in the right order, copies dependencies and so on.
\r
12 Building for .Net 2.0
\r
13 =====================
\r
15 Some of the Castle components have additional features that require the .Net 2.0
\r
16 framework. If you want to use Castle on a project that runs the .Net 2.0
\r
17 framework, you should make sure that you're building for .Net 2.0 Usually it
\r
18 will happen automatically if the .Net 2.0 is installed on your computer, but you
\r
19 can make sure by specifying the 2.0 version like so:
\r
26 If you have MS SQL Server installed, just create two databases:
\r
31 If not you must adjust the connection string and create a small structure on your data. To avoid all this aggravation, simply disable it:
\r
33 > nant -D:nhibernate.test=false -D:activerecord.test=false
\r
36 The basic NHibernate settings can be set as NAnt arguments:
\r
38 - ar.dialect sets the NHibernate dialect
\r
40 > -D:ar.dialect=NHibernate.Dialect.MsSql2000Dialect
\r
42 - ar.connection.driver_class sets the driver
\r
44 > -D:ar.connection.driver_class=NHibernate.Driver.SqlClientDriver
\r
46 - ar.connection.connection_string{1,2} set the connection strings for the test and test2 databases
\r
48 > -D:ar.connection.connection_string.1="Data Source=.\sqlexpress;Initial Catalog=test;Integrated Security=SSPI;"
\r
49 > -D:ar.connection.connection_string.2="Data Source=.\sqlexpress;Initial Catalog=test2;Integrated Security=SSPI;"
\r
53 MonoRail or BooViewEngine tests are failing
\r
54 ===========================================
\r
56 Not good. If you have more than one CLR runtime installed, try specifying the 1.1 runtime:
\r
60 If the problem persists, just disable the MonoRail or BooViewEngine tests:
\r
62 > nant -D:monorail.test=false
\r
63 > nant -D:booviewengine.test=false
\r
68 Compiling a Debug version
\r
69 -------------------------
\r
71 > nant -D:project.config=debug
\r
73 Compiling a version not strongly signed
\r
74 ---------------------------------------
\r
76 > nant -D:sign=false
\r
82 Please direct more questions to our devel mailing list or our forum at http://www.castleproject.org/
\r